FCKConfig.TemplateReplaceAll = false ;
FCKConfig.TemplateReplaceCheckbox = false ;
FCKConfig.TemplatesXmlPath      = FCKConfig.EditorPath + 'hvn/fckhvntemplates.xml' ;
FCKConfig.FontNames = "";
FCKConfig.FontSizes = '12px;' ;
FCKConfig.EnterMode = "br";
//FCKConfig.RemoveFormatTags = 'dfn,em,ins,kbd,q,samp,small,strong,var' ;

FCKConfig.ToolbarSets["Full"] = [
	['Templates', /*'Source','DocProps','-','Save','NewPage',*/'Preview','FitWindow','-'],
	[/*'Cut','Copy',*/'Paste','PasteText','PasteWord'/*,'-','Print','SpellCheck'*/],
	['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
	/*['Form','Checkbox','Radio','TextField','Textarea','Select','Button','HiddenField'],*/
	'/',
	['Bold','Italic','Underline','StrikeThrough','-'],
	['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote'],
	['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
	['Link','Unlink','-','Anchor','Subscript','Superscript', 'CreateDiv'],
        '/',
    ['Style','FontFormat','FontName','FontSize'],
    ['TextColor','BGColor'],
    [/*'FitWindow',*/'ShowBlocks','-'/*,'About'*/],      // No comma for the last row.
    '/',
	['Image','Flash','Table','-','-','-','Rule','Smiley','SpecialChar','PageBreak', 'Source']
] ;

FCKConfig.ToolbarSets["Block"] = [
    ['Source','Bold','Italic','-','OrderedList','UnorderedList','-','Link'],
    '/',
    ['Bold','Italic','Underline','-','Subscript','Superscript'],
    ['OrderedList','UnorderedList'],
    ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
    '/',
    ['Link','Unlink','Anchor'],
    ['Image','Flash','Table','SpecialChar'],
    '/',
    ['TextColor','BGColor']
] ;

FCKConfig.ToolbarSets["Comment"] = [
	['Bold','Italic','UnorderedList','-','Smiley']
] ;

FCKConfig.ToolbarSets["UserSignature"] = [
	['Bold','Italic','Underline','Link']
];
FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/silver/' ;
FCKConfig.PreloadImages = [ FCKConfig.SkinPath + 'images/toolbar.start.gif', FCKConfig.SkinPath + 'images/toolbar.buttonarrow.gif' ] ;


FCKConfig.Debug = false;
//PHP Code
FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ;
FCKConfig.ProtectedTags = 'MYTAG|CUSTOM' ;
FCKConfig.SmileyPath = FCKConfig.BasePath + 'images/smiley/hvn/' ;
FCKConfig.SmileyImages = ['regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif',
'embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif',
'devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif','broken_heart.gif','kiss.gif',
'envelope.gif','really_happy.gif','vi.gif', 'test.gif'] ;
FCKConfig.LinkBrowser = true ;
var _FileBrowserLanguage = 'php' ;
var _QuickUploadLanguage = 'php' ;
FCKConfig.ImageUpload = false ; //No quick upload becuase this will upload to the home folder of user. Bad

//CKFinder
var CKConfigPath  = '/public/library/';
/*
FCKConfig.LinkBrowserURL = CKConfig + '/ckfinder/ckfinder.html' ;
FCKConfig.ImageBrowserURL =  CKConfig +  '/ckfinder/ckfinder.html?type=Images' ;
FCKConfig.FlashBrowserURL =  CKConfig + '/ckfinder/ckfinder.html?type=Flash' ;
FCKConfig.LinkUploadURL =  CKConfig + '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files' ;
FCKConfig.ImageUploadURL =  CKConfig + '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images' ;
FCKConfig.FlashUploadURL = CKConfig + '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash' ;
*/
/* this works

FCKConfig.LinkBrowser = true ;
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'ckfinder/ckfinder.html' ;FCKConfig.LinkBrowserWindowWidth   = FCKConfig.ScreenWidth * 0.7 ;   // 70%
FCKConfig.LinkBrowserWindowHeight   = FCKConfig.ScreenHeight * 0.7 ;   // 70%

console.log(FCKConfig.BasePath);
FCKConfig.ImageBrowser = true ;
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'ckfinder/ckfinder.html?type=Images' ;
FCKConfig.ImageBrowserWindowWidth  = FCKConfig.ScreenWidth * 0.7 ;   // 70% ;
FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ;   // 70% ;

FCKConfig.FlashBrowser = true ;
FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'ckfinder/ckfinder.html?type=Flash' ;FCKConfig.FlashBrowserWindowWidth  = FCKConfig.ScreenWidth * 0.7 ;//70% ;
FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ;   //70% ;

FCKConfig.LinkUpload = true ;
FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files' ;
FCKConfig.LinkUploadAllowedExtensions   = ".(7z|aiff|asf|avi|bmp|csv|doc|fla|flv|gif|gz|gzip|jpeg|jpg|mid|mov|mp3|mp4|mpc|mpeg|mpg|ods|odt|pdf|png|ppt|pxd|qt|ram|rar|rm|rmi|rmvb|rtf|sdc|sitd|swf|sxc|sxw|tar|tgz|tif|tiff|txt|vsd|wav|wma|wmv|xls|xml|zip)$" ;         // empty for all
FCKConfig.LinkUploadDeniedExtensions   = "" ;   // empty for no one

FCKConfig.ImageUpload = true ;
FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images' ;
FCKConfig.ImageUploadAllowedExtensions   = ".(jpg|gif|jpeg|png|bmp)$" ;      // empty for all
FCKConfig.ImageUploadDeniedExtensions   = "" ;                     // empty for no one

FCKConfig.FlashUpload = true ;
FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash' ;
FCKConfig.FlashUploadAllowedExtensions   = ".(swf|flv)$" ;      // empty for all
FCKConfig.FlashUploadDeniedExtensions   = "" ;               // empty for no one
*/


FCKConfig.LinkBrowser = true ;
FCKConfig.ImageBrowserURL = CKConfigPath + 'ckfinder/ckfinder.html' ;FCKConfig.LinkBrowserWindowWidth   = FCKConfig.ScreenWidth * 0.7 ;   // 70%
FCKConfig.LinkBrowserWindowHeight   = FCKConfig.ScreenHeight * 0.7 ;   // 70%

FCKConfig.ImageBrowser = true ;
FCKConfig.ImageBrowserURL = CKConfigPath + 'ckfinder/ckfinder.html?type=Images' ;
FCKConfig.ImageBrowserWindowWidth  = FCKConfig.ScreenWidth * 0.7 ;   // 70% ;
FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ;   // 70% ;

FCKConfig.FlashBrowser = true ;
FCKConfig.FlashBrowserURL = CKConfigPath + 'ckfinder/ckfinder.html?type=Flash' ;FCKConfig.FlashBrowserWindowWidth  = FCKConfig.ScreenWidth * 0.7 ;//70% ;
FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ;   //70% ;

FCKConfig.LinkUpload = true ;
FCKConfig.LinkUploadURL = CKConfigPath + 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files' ;
FCKConfig.LinkUploadAllowedExtensions   = ".(7z|aiff|asf|avi|bmp|csv|doc|fla|flv|gif|gz|gzip|jpeg|jpg|mid|mov|mp3|mp4|mpc|mpeg|mpg|ods|odt|pdf|png|ppt|pxd|qt|ram|rar|rm|rmi|rmvb|rtf|sdc|sitd|swf|sxc|sxw|tar|tgz|tif|tiff|txt|vsd|wav|wma|wmv|xls|xml|zip)$" ;         // empty for all
FCKConfig.LinkUploadDeniedExtensions   = "" ;   // empty for no one

FCKConfig.ImageUpload = false ;
FCKConfig.ImageUploadURL = CKConfigPath + 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images' ;
FCKConfig.ImageUploadAllowedExtensions   = ".(jpg|gif|jpeg|png|bmp)$" ;      // empty for all
FCKConfig.ImageUploadDeniedExtensions   = "" ;                     // empty for no one

FCKConfig.FlashUpload = true ;
FCKConfig.FlashUploadURL = CKConfigPath + 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash' ;
FCKConfig.FlashUploadAllowedExtensions   = ".(swf|flv)$" ;      // empty for all
FCKConfig.FlashUploadDeniedExtensions   = "" ;               // empty for no one
